public class PoeticJuggler extends Juggler {
	private Poem poem;
	
    public PoeticJuggler (int beanBags, Poem poem){
    	//sends the Juggler's constructor with a single argument, beanbags, the value of beanbags assigned in the bean in context.xml
    	
    	super(beanBags);
    	
    	//assigns the content of the poem to the value of what is in Sonner29
    	this.poem = poem;
    	
    	System.out.println("PoeticJuggler dual argument constructor reached");
    }
    
    //kicks off the perform method in the Juggler class to print out the number of beanbags
    public void perform(){
    	try {
			super.perform();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    	System.out.println("While reciting...");
    	
    	//kicks off the recite method in Sonnet29 to print out the poem
    	poem.recite();
    }
}
